import React, { Component } from "react";

export default class Image extends Component {
    
    render() {
        return (
            <img
                onClick={this.change}
                width="500"
                src={this.props.url}
                alt=""
            />
        );
    }

    //声明修改图片的回调
    change = () => {
        this.props.change();
    }
}
